package com.adcc.ags.msgStore.service;

import akka.actor.UntypedActor;
import com.adcc.ags.msgStore.entity.db.DBErrorCode;
import com.adcc.ags.msgStore.entity.db.DBMessage;
import com.adcc.ags.msgStore.entity.file.FileErrorCode;
import com.adcc.utility.mq.entity.Message;
import com.google.common.base.Optional;

/**
 * Created by ZHANG on 2017/3/1.
 */
public abstract class MsgStoreInDBService  extends UntypedActor{
    public abstract DBErrorCode saveMessage(Optional<DBMessage> message);

    public abstract DBErrorCode updateMessage(Optional<DBMessage> message);

    public abstract DBErrorCode saveOrUpdateMessage(Message message);

}
